<div class="modal-header">
	<h5 class="modal-title" id="exampleModalLabel">{$data['id']>0 ? '编辑模块' : '创建模块'}</h5>
	<button type="button" class="close" data-dismiss="modal" aria-label="Close">
		<span aria-hidden="true">&times;</span>
	</button>
</div>
<div class="modal-body">
	<div class="form-group row">
		<label for="name" class="col-sm-2 col-form-label text-right">模块名称</label>
		<div class="col-sm-10">
			<input class="form-control" type="text" id="name" name="name" value="{$data.name}">
		</div>
	</div>
	
	<div class="form-group row">
		<label for="dec" class="col-sm-2 col-form-label text-right">模块描述</label>
		<div class="col-sm-10">
			<textarea class="form-control" id="dec" name="dec" rows="3">{$data.dec}</textarea>
		</div>
	</div>
</div>
<div class="modal-footer">
	<input type="hidden" name="act" value="{$data['id'] ? 'edit' : 'add'}" />
	<input type="hidden" name="id" value="{$data.id}" />
	<button type="submit" class="btn btn-info px-4 align-self-center report-btn">{$data['id'] ? '立即保存' : '立即创建'}</button>
</div>
